package com.example.my_flea_street.service.impl;

import com.example.my_flea_street.Mapper.SearchMapper;
import com.example.my_flea_street.bean.Info;
import com.example.my_flea_street.bean.SearchUser;
import com.example.my_flea_street.service.SearchService;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service(value = "searchService")
public class SearchServiceImpl implements SearchService {

    @Resource
    SearchMapper searchMapper;
    @Override
    public List<String> getHotKeys() {
        return searchMapper.getHotKeys();
    }

    @Override
    public Page<Info> searchInfo(String key) {
        return searchMapper.searchInfo(key);
    }

    @Override
    public Page<SearchUser> searchUser(String key) {
        return searchMapper.searchUser(key);
    }
}
